<tagLib name="html" />
{$header}
<div id="main" class="main" >
<!-- 主体内容  -->
<div class="content" >
  
<div class="btn-toolbar">
	<div class="btn-group">
  <button class="btn btn-primary" onclick="add()"><i class="icon-plus icon-white"></i> 新增</button>
<button class="btn btn-primary" onclick="edit()"><i class="icon-edit icon-white"></i> 编辑</button>
<button class="btn btn-primary" onclick="foreverdel()"><i class="icon-trash icon-white"></i> 删除</button>
</div>
<form class="search-form pull-right" method='post' action="__URL__">
		<input type="text" class="search-query span4" name="keywords" <notempty name='_REQUEST.keywords'>
		<php>echo 'value="'.urldecode($_REQUEST['keywords']).'"'</php>
		<else/>
		placeholder="搜索"
	</notempty>
	>
	<input type="submit" class="btn btn-primary" value="搜索"></form>
</div>
<!-- 功能组区域结束 -->
<php>
    function detail($id){
    echo ('<a href="__APP__/Sale_back_detail/index/sale_back_id/'.$id.'">详情</a>');
    }
</php>
<!-- 列表显示区域  -->
<div class="list" >
<div id="result" class="result none"></div><html:list id="checkList" style="table table-bordered table-striped" name="action" checkbox="true" action="true" datasource="list" show="id:编号|5%:edit,sale_back_no:退货单号:edit,total:总金额,sum_number:总数量,customer_id|getModelName=Customer:客户,warehouse_id|getModelName=Warehouse:仓库,user_id|getModelName=User:经办人,create_time|toDate:退货时间,update_time|toDate:修改时间,status|getStatus:状态,id|detail:详情" actionlist="status|showStatus=$action['id'],addpt:增录产品:id" />
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 --><include file="Public:footer"/>
<script type="text/javascript">
  function addpt(id){
    location.href=APP+"/Sale_back_detail/add/id/"+id;
  }
</script>

